<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@page import="dyyx.dto.*"%>
<%@page import="dyyx.util.*"%>
<%@page import="java.util.*"%>

<%
WebResult webResult = new WebResult();
DubboViewWebUtil.getServiceInfo(request, webResult);

DubboServiceInfo serviceInfo = webResult.serviceInfo;

List<DubboNode> providers = null;
List<DubboNode> consumers = null;

if(serviceInfo!=null){
	providers = serviceInfo.providersOfDubboNode;
	consumers = serviceInfo.consumersOfDubboNode;
}


%>
<%@include file="/comm.jsp"%>

<hr>

<%=new Date() %> <br>
service: <%=webResult.service %>
<hr>

<%=webResult.msg %> <br>
zookeeper:<%=ClientUtil.getZkInfoForDubbo() %> <br>

<a href="../zookeeper/form.jsp"> zookeeper 连接设置 </a>  &nbsp;&nbsp;&nbsp;

<a href="../">HOME</a>


<hr>

<hr>



<table>


<tr class='title'>
  <td>provider.application</td>
  <td>group</td>
  
  <td>version</td>
  <td>ipAndPort</td>
  
  <td>path</td>
</tr>

<%if(providers!=null){ %>

<%for(DubboNode node:providers){
	%>
<tr>
  <td><%=node.application %></td>
  <td><%=node.group %></td>  
  <td><%=node.version %></td>
  <td><%=node.providerIpAndPort %></td> 
  <td><%=node.path %></td>
</tr>
<%} %>


<%} %>


<tr>
<td colspan='4'>*******</td>
</tr>



<tr class='title'>
  <td>consumer.application</td>
  <td>group</td>
  
  <td>version</td>
  <td>ip</td>
  <td>path</td>
</tr>

<%if(consumers!=null){ %>

<%for(DubboNode node:consumers){

	%>
<tr>
  <td><%=node.application %></td>
  <td><%=node.group %></td>
  
  <td><%=node.version %></td>
  <td><%=node.consumerIp %></td> 
    <td><%=node.path %></td>
</tr>
<%} %>

</table>

<%} %>

<hr>



